using Microsoft.SmallBasic.Library;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace SmallBasicFun.Tests.Quiz
{
	[TestClass]
	public class SpiderQuizTest
	{
		private static Primitive length = 1;
		private static Primitive number = 0;

		[TestMethod]
		public void TestQuiz()
		{
			SmallBasicFun.Quiz.StartSpiderQuizAt += question1;
			ApprovalHelper.ApproveProgramWindow();
		}


		private static void question1()
		{
			for (int i = 0; i < number; i++)
			{
				SmallBasicFun.Quiz.Circle();
			}
		}


		private static void circlearound()
		{
			for (int i = 0; i < 3; i++)
			{
				SmallBasicFun.Quiz.Adjust();
				question1();
			}
		}

		private static void grow()
		{
			length = length*2.5;
		}

		private static void shrink()
		{
			length -= 9;
		}

		private static void expand()
		{
			number += 12;
		}
	}
}